<?php
	require_once '../../model/global.inc.php';  
?>
<?php
 if(isset($_GET['idProduct'])) {
	require_once "../json/JSON.php";
	$json = new Services_JSON();
	
	//convert php object to json 
	
	$tv="select * from tblproduct where pro_id=".$_GET['idProduct'];
	$tv_1=mysql_query($tv);
		  
	//$value = array('first' => 'Steven', 'last' => 'Spielberg', 'address' => '1234 Unlisted Drive');
	$value = mysql_fetch_array($tv_1);
	$output = $json->encode($value);
	
	print($output);
}
?>